package com.orangelife.mobile.login.activity;


import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.TextView;

import com.curry.orangelife.mobile.R;
import com.orangelife.mobile.common.activity.OrangeLifeBaseActivity;
import com.orangelife.mobile.constants.Constant;

/**
 * 用户注册协议
 * @author yw
 *
 */
@Deprecated
public class RegistrationProtocolActivity extends OrangeLifeBaseActivity{
	private TextView tv_title_right,tv_title;
	private WebView wv_register;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_rp);
		initView();
		findView();
	}
	private void findView() {
		tv_title.setText("");
		tv_title_right.setVisibility(View.GONE);
	}
	private void initView() {
		tv_title=(TextView) findViewById(R.id.tv_title);
		tv_title_right=(TextView) findViewById(R.id.tv_title_right);
		wv_register=(WebView) findViewById(R.id.wv_register);
		wv_register.loadUrl(Constant.PATH_REGISTER_P);
		wv_register.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
		wv_register.setWebViewClient(new WebViewClient(){

			@Override
			public boolean shouldOverrideUrlLoading(WebView view, String url) {
				 view.loadUrl(url);
				return true;
			}
			
		});
		
	}
}
